const {fnKeyPathSet}=require('../lib/fnKeyPathSet');

const obj={
    b:{
        d:0,
        getComponent(key,val){
            console.log(key,val);
            return obj.b;
        }
    }
};

fnKeyPathSet(obj,{
    'b.e':{c:'c'},
    'b.getComponent(MJ,1).d':{m:'n'}
},'getComponent');
console.log(obj);